home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Loadstar 28
/
028.d81
/
speed read
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2022-08-26
|
7KB
|
259 lines
1 gosub60100
5 clr:dimj$(500),g$(80):bk$="[164]"
10 forr=54272to54296:poker,0:next
19 poke54274,0:poke54275,8
28 poke54278,240:poke54296,0
37 poke54277,0:poke54276,65
46 poke54272,63:poke54273,72:lt=0
55 poke53280,15:poke53281,15:poke646,lt
65 print"[147] [211]peed [210]ead"
67 print" [163][163][163][163][163][163][163][163][163]"
69 print" ([198]) [198]lashcards"
71 print" ([211]) [211]topwatch"
72 print" ([195]) [210][213][206] '[198]lash [195]reate'"
73 print" ([210]) [210]eturn to [204][207][193][196][211][212][193][210]"
100 gett$:ift$=""then100
109 ift$="f"ort$="[198]"then136
118 ift$="s"ort$="[211]"then1207
127 ift$="r"ort$="[210]"then1063
128 ift$="c"ort$="[195]"then8000
130 goto100
136 yes=0:no=0:print"[147]"
145 c%=11:gosub1081:print"[197]nter level (1-8) ";
154 getl$:ifl$=""then154
163 lv=val(l$)
172 if lv=0thensp=3:goto244
181 lev=1
190 forj=1to8
199 lev=lev*10
208 iflv<>jthen226
217 n$="level"+str$(j):goto253
226 next j
235 goto136
244 iflv=0thenn$="demonstration"
253 i=0:sp=2
262 print"[147]":r%=12:c%=12:gosub1081
271 print"[204]oading[160]";n$
272 open15,8,15,"r0:"+n$+"="+n$+"":input#15,er:close15
273 ifer=63then280
275 print:print" [198][201][204][197] [206][207][212] [198][207][213][206][196]![144]"
276 fora=1to2000:next:goto136
280 open 8,8,4,""+n$+ ",r"
289 input#8,k$:if k$="/"then325
298 i=i+1
307 j$(i)=k$
316 goto289
325 close8
334 iflv=0then442
343 r0=rnd(-rnd(0))
352 k=i-1:l=lev*10
361 i=2*i:ifi>500theni=500
370 forj=ktoi
379 m=int(l*rnd(r0))
388 ifm<levthen379
397 m$=str$(m)
406 o$=right$(m$,len(m$)-1)
415 j$(j)=left$(o$,len(o$)-1)
424 nextj
433 rem don't get numbers for demo
442 close8
451 print"[147]":c%=17:r%=3
460 iflv=0thenc%=13
469 gosub1081:printn$
478 c%=13:r%=4:gosub1081:poke646,6
487 foro=1to14:print"[178]";:next
496 c%=13:r%=8:gosub1081
505 foro=1to14:print"[177]";:next
514 c%=0:r%=9:gosub1081:poke646,2
523 foro=0to39:print"[183]";:next
532 r%=11:gosub1081
541 foro=0to39:print"[175]";:next
550 inarow=0:poke646,lt
559 r0=rnd(-rnd(0))
568 iflv>0thenr1=int(rnd(r0)*i):ifr1=0then568
577 iflv=0thenr1=r1+1:ifr1>22then964
586 r%=14:gosub1135:r%=15:gosub1135:gosub1081
595 x=yes+no
604 print"[212]otal=";x
605 print"[212]ype / [144]to exit. ":print"[208]ress [210][197][212][213][210][206] when ready."
606 getp$
607 ifp$<>chr$(13)andp$<>"/"then606
613 ifp$="/"then964
622 c%=21-(len(j$(r1))/2):r%=10
631 gosub1081:printj$(r1)
640 lim=sp:iflim>0thengosub1180
649 r%=10:gosub1135:r%=14:gosub1135
658 r%=15:gosub1135:r%=16:gosub1135:r%=17:gosub1135:r%=18:gosub1135
667 c%=0:r%=14:gosub1081
676 print"[197]nter what you saw below."
677 print"([197]nter r[144] to redisplay it.)
678 [153]"->";bk$;:nc[178]40:mo[178]154:[141]60500:[139]a$[178]""[167]a$[178][199](13)
685 [139]a$[178]"/"[167]964
694 [139]a$[178]"r"[167]622
703 [139]a$[178]j$(r1)[167]yes[178]yes[170]1
712 [139]a$[179][177]j$(r1)[167]no[178]no[170]1
721 h%[178]5:q%[178]5
730 [139]sp[178]1[167]h%[178]7:q%[178]6
739 [139]sp[178]0[167]h%[178]10:q%[178]7
748 [139]a$[179][177]j$(r1)[167]856
757 [151]646,h%
766 c%[178]inarow[170]13:r%[178]q%:[141]1081:[153]"*"
775 [151]646,lt
784 inarow[178]inarow[170]1
793 [139]inarow[179]14[167]568
802 inarow[178]0
811 sp[178]sp[171]1:[139]sp[177][178]0[167]559
820 sp[178]2:lv[178]lv[170]1:[139]lv[179][178]8[167]181
829 [153]"load":r%[178]10:c%[178]10:[153]"(NULL)ou've mastered the course! lenongratulations"
838 [137]964
847 [137]559
856 r%[178]17:[141]1135
865 [151]54296,15:lim[178]1:[141]1180:[151]54296,0
874 r%[178]17:c%[178]0:[141]1081
883 [153]"right$t should be"
892 r%[178]19:c%[178]2:[141]1081
901 [153]j$(r1)
910 r%[178]21:c%[178]0:[141]1081
919 [153]"(NULL)ress (NULL)val(NULL)(NULL)(NULL)(NULL) to continue"
920 [161]a$:[139]a$[179][177][199](13)[167]920
928 [129]n[178]16[164]21:r%[178]n:[141]1135:[130]
937 c%[178]inarow:r%[178]q%:[141]1135
946 inarow[178]0
955 [137]559
964 lim[178]50:[141]1180:[153]"load"
973 x[178]yes[170]no
982 [139]x[179][177]0[167]p[178][181](10000[172](yes[173]x))[173]100
991 [153]"";n$:[153]
1000 [153]"(NULL)ight= ";yes;
1009 [153]" (NULL)rong= ";no;
1018 [153]" (NULL)otal= ";yes[170]no
1027 [153]:[153]"(NULL)core= ";p;"%":[153]
1036 [153]:[153]"(NULL)ress any key for menu";
1045 [161]l$:[139]l$[178]""[167]1045
1054 [137]5
1063 [159]15,8,15,"r0:hello connect=hello connect":[132]15,er:[160]15
1064 [139]er[179][177]63[167][128]
1065 [153]"load";:[147]"hello connect",8
1072 [128]
1081 [143] move cursor to a position
1090 c$[178]""
1099 r$[178]""
1108 [153]""
1117 [153][200](c$,c%);[200](r$,r%);
1126 [142]
1135 [143] erase a row & move
1144 c%[178]0:[141]1081
1153 [153]" "
1162 [141]1081
1171 [142]
1180 [143] pause
1189 [129]o[178]1[164]lim:xx[178][191](45):[130]
1198 [142]
1207 [143] time the practice reading
1216 [153]"load":r%[178]12:c%[178]10:[141]1081
1225 [151]646,6
1234 [153]"(NULL)ress any key to startwait"
1243 [161]l$:[139]l$[178]""[167]1243
1252 t0$[178]time$
1261 [153]"load":r%[178]12:c%[178]10:[141]1081
1270 [151]646,2
1279 [153]"(NULL)ress any key to stopwait"
1288 [161]l$:[139]l$[178]""[167]1288
1297 t1$[178]time$:t[178][197](t0$):[141]1459:t0[178]t
1306 t[178][197](t1$):[141]1459:t[178]t[171]t0:[139]t[178]0[167]t[178]1
1315 [151]646,0:[153]"load"
1333 [153]"valnter number of words:";bk$;:mo[178]2:nc[178]15:[141]60500:q$[178]a$
1342 d[178][197](q$)
1351 [153]"load":r%[178]5:c%[178]0:[141]1081
1360 [153]"elapsed time speed"
1369 r%[178]6:[141]1081
1378 [153]" (minutes) (wpm)"
1387 t[178][181](100[172](t[173]60))[173]100
1396 spd[178][181](d[173]t):r%[178]8
1405 c%[178]3:[141]1081:[153]t
1414 c%[178]16:[141]1081:[153]spd
1423 r%[178]13:c%[178]0:[141]1081
1432 [153]"(NULL)ress any key to return to the menu";
1441 [161]l$:[139]l$[178]""[167]1441
1450 [137]5
1459 [143] convert to seconds
1468 hrs[178][181](t[173]10000)
1477 t[178]t[171](10000[172]hrs)
1486 min[178][181](t[173]100)
1495 sec[178]t[171](100[172]min)
1504 t[178]3600[172]hrs[170]60[172]min[170]sec
1513 [142]
8000 f$[178]"flash create"
8010 [153]"loadload";[199](34);f$;[199](34);",8"
8020 [153]"run"
8030 [151]631,13:[151]632,13:[151]198,2:[162]
60100 pn$[178]"(NULL)(NULL)valvalstr$ (NULL)valatnstr$":an$[178]"peek(NULL): mid$val(NULL)(NULL)(NULL) val. chr$(NULL)ascasc"
60110 bo[178]11:sc[178]15:cl[178]06:c1[178]12:c2[178]00:c3[178]12:c4[178]00:c5[178]00:c6[178]02:c7[178]09
60120 [143] bo - border color
60121 [143] sc - screen color
60122 [143] cl - color poked on border
60123 [143] c1 - top box outside color
60124 [143] c2 - top box inside color
60125 [143] c3 - bottom box outside color
60126 [143] c4 - bottom box inside color
60127 [143] c5 - 'copyright' color
60128 [143] c6 - 'program name' color
60129 [143] c7 - 'authors name' color
60130 [151]53280,bo:[151]53281,sc:[153]"load";
60140 [151]646,c1:[153]" totototototototototototototototototototototototototototototototototototo"
60150 [151]646,c2:[153]" fn (NULL)(NULL)atnstr$(NULL)(NULL)atn(NULL) (NULL)(NULL)val(NULL)val(NULL)(NULL)(NULL): then"
60170 [151]646,c1:[153]" tab(tab(tab(tab(tab(tab(tab(tab(tab(tab(tab(tab(tab(tab(tab(tab(tab(tab(tab(tab(tab(tab(tab(tab(tab(tab(tab(tab(tab(tab(tab(tab(tab(tab(tab(tab("
60180 [151]646,c6:[153]""[163]20[171][195](pn$)[173]2);pn$
60190 [151]646,c7:[153]""[163]20[171][195](an$)[173]2);an$
60200 [151]646,c5:[153]""[163]13)"len(NULL)(NULL)(NULL)(NULL)right$chr$left$(NULL) 1986"
60210 [153][163]9)"len(NULL)(NULL)(NULL)(NULL)str$(NULL)(NULL)val (NULL)(NULL)peek(NULL)right$lenatn(NULL)right$(NULL)(NULL)(NULL)"
60220 [151]646,c3:[153]" totototototototototototototototototototototototototototototototototototo"
60230 [151]646,c4:[153]" fn then"
60240 [151]646,c3:[153]" tab(tab(tab(tab(tab(tab(tab(tab(tab(tab(tab(tab(tab(tab(tab(tab(tab(tab(tab(tab(tab(tab(tab(tab(tab(tab(tab(tab(tab(tab(tab(tab(tab(tab(tab(tab(":le[178]1044:ri[178]1043
60250 [151]le,98:[151]ri,98:le[178]le[171]1:ri[178]ri[170]1
60260 co[178]54272:[151]ri[170]co,cl:[151]le[170]co,cl